
import pandas as pd

import plotly.express as px

products = pd.DataFrame({
    'ProductID': [1, 2],
    'ProductName': ['A', 'B']
})

sales = pd.DataFrame({
    'TransactionID': [101, 102, 103],
    'ProductID': [1, 2, 1],
    'Sales': [100, 150, 120]
})

merged_df = pd.merge(sales, products, on='ProductID')
print(merged_df)
